<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>写给五年后的自己的一封信 | JC小站</title><meta name="keywords" content="人生规划"><meta name="author" content="John Cena"><meta name="copyright" content="John Cena"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="文章已被加密">
<meta property="og:type" content="article">
<meta property="og:title" content="写给五年后的自己的一封信">
<meta property="og:url" content="https://jcxiaozhan.gitee.io/2022/07/03/%E5%86%99%E7%BB%99%E4%BA%94%E5%B9%B4%E5%90%8E%E7%9A%84%E8%87%AA%E5%B7%B1%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1/index.html">
<meta property="og:site_name" content="JC小站">
<meta property="og:description" content="文章已被加密">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://img.jcxiaozhan.top/cover/%E7%BB%99%E6%9C%AA%E6%9D%A5%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1.jpg">
<meta property="article:published_time" content="2022-07-02T16:00:00.000Z">
<meta property="article:modified_time" content="2023-03-03T00:50:49.159Z">
<meta property="article:author" content="John Cena">
<meta property="article:tag" content="人生规划">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://img.jcxiaozhan.top/cover/%E7%BB%99%E6%9C%AA%E6%9D%A5%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1.jpg"><link rel="shortcut icon" href="https://img.jcxiaozhan.top/%E7%BD%91%E7%AB%99%E5%B0%8F%E5%9B%BE%E6%A0%87.png"><link rel="canonical" href="https://jcxiaozhan.gitee.io/2022/07/03/%E5%86%99%E7%BB%99%E4%BA%94%E5%B9%B4%E5%90%8E%E7%9A%84%E8%87%AA%E5%B7%B1%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: {"limitCount":50,"languages":{"author":"作者: John Cena","link":"链接: ","source":"来源: JC小站","info":"著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。"}},
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"你已切换为繁体","cht_to_chs":"你已切换为简体","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#121212","position":"top-right"},
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: true,
  islazyload: false,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '写给五年后的自己的一封信',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2023-03-03 08:50:49'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches
          const isLightMode = window.matchMedia('(prefers-color-scheme: light)').matches
          const isNotSpecified = window.matchMedia('(prefers-color-scheme: no-preference)').matches
          const hasNoSupport = !isDarkMode && !isLightMode && !isNotSpecified

          if (t === undefined) {
            if (isLightMode) activateLightMode()
            else if (isDarkMode) activateDarkMode()
            else if (isNotSpecified || hasNoSupport) {
              const now = new Date()
              const hour = now.getHours()
              const isNight = hour <= 6 || hour >= 18
              isNight ? activateDarkMode() : activateLightMode()
            }
            window.matchMedia('(prefers-color-scheme: dark)').addListener(function (e) {
              if (saveToLocal.get('theme') === undefined) {
                e.matches ? activateDarkMode() : activateLightMode()
              }
            })
          } else if (t === 'light') activateLightMode()
          else activateDarkMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><link rel="stylesheet" href="/css/mycss.css"><meta name="generator" content="Hexo 6.2.0"><link rel="alternate" href="/atom.xml" title="JC小站" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/mysrc/headimg.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">33</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">17</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">4</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/artitalk/index.html"><i class="fa-fw fa-fw far fa-comments"></i><span> 说说</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group hide" href="javascript:void(0);"><i class="fa-fw fas fa-link"></i><span> 链接</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/link/"><i class="fa-fw fa fa-users"></i><span> 友情链接</span></a></li><li><a class="site-page child" href="/sites/"><i class="fa-fw fa fa-bookmark"></i><span> 实用网站</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/navigation.html"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://img.jcxiaozhan.top/cover/%E7%BB%99%E6%9C%AA%E6%9D%A5%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">JC小站</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/artitalk/index.html"><i class="fa-fw fa-fw far fa-comments"></i><span> 说说</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group hide" href="javascript:void(0);"><i class="fa-fw fas fa-link"></i><span> 链接</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/link/"><i class="fa-fw fa fa-users"></i><span> 友情链接</span></a></li><li><a class="site-page child" href="/sites/"><i class="fa-fw fa fa-bookmark"></i><span> 实用网站</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/navigation.html"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">写给五年后的自己的一封信</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2022-07-02T16:00:00.000Z" title="发表于 2022-07-03 00:00:00">2022-07-03</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-03-03T00:50:49.159Z" title="更新于 2023-03-03 08:50:49">2023-03-03</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E7%94%9F%E6%B4%BB%E7%90%90%E7%A2%8E/">生活琐碎</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">14</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>1分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="写给五年后的自己的一封信"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span><span class="post-meta-separator">|</span><span class="post-meta-commentcount"><i class="far fa-comments fa-fw post-meta-icon"></i><span class="post-meta-label">评论数:</span><a href="/2022/07/03/%E5%86%99%E7%BB%99%E4%BA%94%E5%B9%B4%E5%90%8E%E7%9A%84%E8%87%AA%E5%B7%B1%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1/#post-comment"><span id="twikoo-count"><i class="fa-solid fa-spinner fa-spin"></i></span></a></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><div class="hbe hbe-container" id="hexo-blog-encrypt" data-wpm="密码错误，请重试。" data-whm="OOPS, these decrypted content may changed, but you can still have a look.">
  <script id="hbeData" type="hbeData" data-hmacdigest="37e1331d5ae2368bc173174af7afc74b3a93a84f5b80470805b365727e085510">66b46b7b58be19db62a6a8f28aae2f8a9259bd66cb3800c0d05a08a177e1dd20dc7f2c6b600ebd348401af779e147ffc72d3564a182250a8afd2dc45f93cd1d80f4e4a18a9560ed2d0600d699589ca8858ab4948a343a4be1fae4f8426faf80f7d10abc8332dad0039c94249ea9d51b3448b77712ac8cf3dd60b4376a1a812d0e15ff12daf62da4b403940f389521c9e2ec7b62f77e89fa0e5d94a079084824001113c6aba2c70ece226f1d6d0d13cb37c26d2d3a0bc4e84387f4ca76618df97e83f8853eebce48de38e265b91da7c965ebd79396a1090ed0731d3c54589daf42487ba308a2c95b85fc76df9921710889474c34a9a24b1ba13a6936b795d5cbd6a9b0c98e97089156d65fce907e4d379cbf62e38d80c6d8274eea6b455cbe3b457082bcaf138e1e3be605f0a13901faddf79d6c1aa32f68184bf4e7ede07720bfb13cd02c63c0a5a50c4cbd57258c6026aeeb94b5b14b8e93a003b77c04d4a382eb5dcb9310acfffa080b31fc49b7e8203f9d7de22f4710675cb4781db72acf6c5e585285925c5526a240e48c32b408aa0d9f32bdac8d574caeb6cef5a37b446c1e3382f3a251afd3e4997e21a0d5a859234b404a4a1dfacf8c7203496c323ddb77c4ce030bac0ee1f211ab73cb6eaf0f900ee0d0bd1e30b6b4f6fa33de9ee7106f7f11effd8e091c2217df00e92b648bd7b990775a572006730d5a3952b111b0d0201cab0964b0c65dbf11d98db1182be0de50d03194a840d2d35fbc143325a3cfbccce9bea65f92e046a178fde21c521ef40497fcb44533c680237ce182ecba39604f19b0e2a4757f9a747cf85116532aff92d49934d34eff87136f59493040c9d3d29d6a635f427daaf7be36357d02f13a3399c2fe342d202c6dab20a071587e950df6a45684cb895e4c49d8a242d8eb8e32a417da510f08697b490e99395da31d6dc6f5d85bb53c7848cce90132e4a928d16887543750b9fa113ccc38166c33929719f0793a3ed15272cc588b54015782b058b8f3d78d7a7bce527c6b2b6457df8ffc32f3e3bc537a0fb828384d46b2f921ba46f4e631b2d56d03160800d8b5671472b0b2ff0d44c993086d2b506eca7c29cc13fb94e826924544981684d946b04c514b9418581c1cc853b18f53f9008b8be646300cd701397a8f8952336f26151c7603117e03e7f5d0a129918b17c25b7d57a3d427cb0d019f566d118f9b9554e3bac8be6eb35939c9a64bbfeab70e612f11dfa57fcd693488a45592d80aae3454f5378510d2f0fb6cb1b1dee4404bff98c010320897c7bd52d783dc007322744d9259309397faa43bac17675facab7ac399b32136d897e24221ee882f66d29731d766e2d5d8672c5ff2d30f292e7f201a4d5f739b1a41a37a355a8c270adbde018753b2f083aa2da7f1fa20079310e5b421a82a9d538e474e08e753196ee610535c9fc62dffd3306ead998a62e497589b7915022197db16c3c47ca9cf7f1df92b184c046fb3cf0bc8c43ccb9fa22ece0af2e9dbfb09864d193b3658e6809e13eaa5d769612f98ac0fa2404bf7405ecb393da3d64f3d79addafb271ad4eeed965e6f6de38235415b0fbf69a4609bd4bfe256fa5427e7335c2548bb58a4c851bfd913f8669b87fb33041a9c1927bbccc9d13a48f5c66503e14f00001b38e2d36a71ecf9eef001514f459408ce5603815670bc30e3e9a80432c748a25d49c5544a5d7c4688ea6157e0b88e1967d25f535caf6e830b8f52c2b19f5dc78804275a187713e33045516a11753eb278110b5dcec586eca07a590875a8a42556f5d2008e16d5ad470b06842e9d1c313bf8ec65708b899b32e97da7a1922e9fda623e1bd09e903207b0e9e4416e6af812356ae73b2de1f047053a5db1e85d7d206d600b1b216aac11dd1b9b00050d7de3a2cf0b0b92d6408bba0b2df98b42d3f17244c04b89ab9f14119b4d6a18d7990734aef12613b1152f9ce6e17d5bba67405fa7340f907b62b4bfad68816cc0e3a52ad9f345ff638adf907bea3a9a54235857d46dfe9b7973a4f8055ec3e8b2304f3db8b178b879ce957366357c56f9f75d3a72c201b05c22508684d9422058d7e11d8f902fa7dfca4742995376e43808be688bf7e89e68b7fdf81c770ce976b3ebbf4b624a4c40194b8cc32d6bcc959c7e37f9b09df31d1eb6102bcf319f118e7562a8a565dc36dcbaa907314552b7e5370c358ed31f55c27aac9f775c12f8b0c42944e81d14ad486d0291fc1ba1b71ca11361d9055b5881aa916568bf7cd3f120767f40d96accabd0304de74b3642073769b93bd4c8a8d43bb79254217719fbb280bd529b390f267c666177eabd22d280300e96066696cc9b4f5e21ac347e6d6a5d42200e07b5e99e506705c051f11e3367f19251556b665ccb1511cf1e176cdee17120f3b4d89b8965b5f2ae8cea3e1ff8dbe0c386576aebbd0525d65ffffbeaa9bafe936cd65a60d0103f2633103f51c9cda7a372d4e3a868a1da874de5a320288c3c2c09ce50d2d63c3b8e54b3e59884693b222a4aa95965a446e9b2968b7604b3c49c90a99b6107fb714380493b7e947e8c2fc395336ec827eaec2ca15a82581e673dae0b3217ed47b7d9ef8ab835f040ff03dbb871718e7b3c00a761d648f68216830cbbfecb2dad43499408823bb0ebc5e0a570382904e773734dc793850ce183760caab3602b88e3ed80304202e2d371493bf3471fc7cbb68fac164a1947504b19a136a89966e8fcb4d748116b3b84ab2209398c8b2a8b3661d0187ca87cd486ae10db70fff8383b50079ed36c8ca405e45de80097ba75e0a4cf6e36dd0a9e0a94a622b256631aa9745c82adb7ebe99f4c1563e2b0d580686c10eebfeee691f77caaa44312e9526c5d67c0904edc47fba4680b3cfc62e434f2fc23fe879a14e51c9f7e86d37583f61af44a204f799aa978671bac82b7200cc0db990092098f6222e1798c5a1786599a47a2ef3450356b2cdd23bf438ae9b42ee339dce11fbb79271978c109f6e22c8a5fee293f3286da74d0390afbf8361eaf08a79e103d921a1c43e70aded3ff9b17bbb7eacfb4ac7f9b4c4fe3a5606c0c65f111f47f97abe812aa3a2afb98024ce320f67dca9b77dd35cc517de3f7a9fb4a86088efca84e0bcad6910591580a8cf91dd24e3bc6b2d5e259525d5cfe9bdb5662112e3f76807f11a5f61055643ef65ab0782b2f3dab195787fab99679d5338fe2d033248479ff88a0f3081b3914a1ebee9f14e0bf9b3cc35c5abb436e85ed7cfe3a0f556aa4260570664ca36dc015a42014772e181d6a3f6718cce08663460ce73a6021e9e15efc31a3fe316ecae7ac9504b0a607b87f99314012b42f2420feb7aa4644966959fb9075b8e16e10b66beab61566c1c4c6fee0519e7c43037b4ed2ff2cb0e4a1aa1b44efc45d25fe267ff09bde246ca9d8a54a7195aa431e9994ddb72171f84ca23ef8dda8eacbbac715a9113eeef9fd4eedb92b56ddc138f16415382781c001267c0b9b920f8a0454e549a58e44de8e617bcaddea2b112a4a1039652526284e286d1ce5674244d5a19d108330bf3f57d5f033f66ddaca5f1f51be173804a4ee9061f9f3310dba59de695ae1d19583d570d63fdd108317b682df9aeb0b76737132a6b6b6fc30ff533d2f606ee3c65d12c3c9e449f1d8bd7e48277de87540afcba737a94dc8b8a1d0f4c802cd4f2e1459618b6f658be996a9783f6f89f86204b540551760992bf3f1b601029fc4e66d414afe308807923fc2c8335b5ac64a815450c2a19d5b738e8843ee67860343d65ec6a2c534f14490109dcd07569d5730b5334f276df2e55c937395ab65122fe96aa3f296deb4c5a093399110e0ab21fea090f6be17ae82f1b89ba0b0d063840e3ffb9b523420e6f9dbf4438702c8d6649aca5b6e24ee9c6eb5b68b2cdecb8fd608621588ea7e27c428cb7fa5a147a49b21542cecde1c7b105efee748e6cd3ae55621226bee7d50c507f20ea6e5fc7030b85ae01883a794ea464d96bc7db8e9d8463fe8911db45f363535abbaac795d9b4bdb7898a5d35bfd5c6f944cbdcab11cf23825f3ee8c44c5004eeecc441cc42e36c396ba7bcf43b9b82e51c3ce55685a153c5381a253618a5c00b79d8b68d9f150111fd10fd41d9d1241b8f98d7fd1f5c24dbb0941063c16cfa6dc749830de6ae5c333afc747ea6bd4e4d127a2de42082cd1d14b19e46bada533d917374c3e8d745e95639c533601978d69fbb59935ce27139aa614a0385c2f986db0bdd6b885a7f59f0d3db6e0ca0aa157bdef00c5238e6d3a5adfc4333d61fb855680507ad71d5ce810fb492f66fddf4c6146f25d19f25aed256bd64c20f98842bc2a86d565c503995ac9661ec6d724edc8f3707004293600a02a1b5dea8ff50f98751b4966590f9acdc202b0d89c5060b356c52ea59342fba4a7de0e0214102353a4a010a3b1271702fa560b028aae5809fccf028e2586145e93f4e93f752ec4e6db53928aba207111d9f5eee8067a74bf0a873eaec86f479ce58c164df10323e88711c0fd2beb0a07d3dac37d8e3a5e104362efab33c2f7458061e1c516886d5d81008e61f4b81133cec5d3bc887eac93013a76fc42564ede519e78a38c23e3ef153afd7b69d37220ad3f228af657b8d8f0326937fffcccda0fbea9cb93c9c3a93d7069bc41b318b711090585ca2c15818b6a8f5100531de038cb90f5956a71f10a3f9a103da6d0cbac5428f37295c30877ca8391b40f6e68dc4be5a9cb877092756e2d41f3d0f8a1f26387607df13bb20215d35426e70b179f0819ddad528156f0e507ff16e4d8be886a0cba067c3ab636520afc54dd74a4755bf7799c299c3eaef3484a38338bc40de80b31131b57b51f89997f13e5f31be5f009809ad991f3c0beb3b81420001176875b47fdead6b46a26a2eafe01701d058686556af491380e7abc98487dc18b9d1855298f4c849114dcf8e04d8ba7d5971cc2d2971cd2c943d6a2e281f8e6ca9293b44a337ba16b5304603b5883d3a8505e090d284079699f7dd8a3a2daace9122da692afd24abbe9cf4fe59dce65cbfabcb8a5da5fdaa27a3a9e45eeffde4cf60f82325137392275ac68614f8cc3a68cfc32ed172367c6435b994881bbcd89869b129867f7100830681f0734e81a6e0582e31ab65f7bfcb73e4fc0dc292b49fdb6e33be5434b647ddbbd9177a024374064ce5d958944f1272a902b96ada61d7390facb82e76e3e6dd99241e2416ed409ad5ceef5834b3871204434b5c2343b1bd8ccc14bc69565d93124902aed07cc3f30e397aaf7cf37a25f378acbd171ee980541a29dfeec3c3955143c08fb946b2a3902297a4b47281072fd418548f0c506b2716735ffe6d51ee5fa55b2d7e41c5832f9e04325f79a31bc105f23610a2046b096ec493a989b737321d6333f1f1d13afddfcacb9e6f0a6507a5e7b6c02dab3233f47ec8f5e9a4d88030d4241846b6996c2ea11345544459989a22426b3e11153c772d172a7edd9180b59f075ad6af445fce6a110ac4a4ea2cf41632e9ac2d59ea790c811547a01cc0c76420538f8b4b5df96fadbdeb4132298405</script>
  <div class="hbe hbe-content">
    <div class="hbe hbe-input hbe-input-default">
      <input class="hbe hbe-input-field hbe-input-field-default" type="password" id="hbePass">
      <label class="hbe hbe-input-label hbe-input-label-default" for="hbePass">
        <span class="hbe hbe-input-label-content hbe-input-label-content-default">文章已被加密，请输入密码查看。</span>
      </label>
    </div>
  </div>
</div>
<script data-pjax src="/lib/hbe.js"></script><link href="/css/hbe.style.css" rel="stylesheet" type="text/css"></article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://jcxiaozhan.gitee.io">John Cena</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://jcxiaozhan.gitee.io/2022/07/03/%E5%86%99%E7%BB%99%E4%BA%94%E5%B9%B4%E5%90%8E%E7%9A%84%E8%87%AA%E5%B7%B1%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1/">https://jcxiaozhan.gitee.io/2022/07/03/写给五年后的自己的一封信/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://jcxiaozhan.gitee.io" target="_blank">JC小站</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/%E4%BA%BA%E7%94%9F%E8%A7%84%E5%88%92/">人生规划</a></div><div class="post_share"><div class="social-share" data-image="https://img.jcxiaozhan.top/cover/%E7%BB%99%E6%9C%AA%E6%9D%A5%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1.jpg" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2022/11/29/%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE%E7%AE%97%E6%B3%95/"><img class="prev-cover" src="https://img.jcxiaozhan.top/cover/%E7%AE%97%E6%B3%95.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">二分查找算法</div></div></a></div><div class="next-post pull-right"><a href="/2022/06/13/%E4%B8%93%E5%8D%87%E6%9C%AC%E7%BB%8F%E9%AA%8C%E5%88%86%E4%BA%AB/"><img class="next-cover" src="https://img.jcxiaozhan.top/cover/%E4%B8%93%E5%8D%87%E6%9C%AC%E7%BB%8F%E9%AA%8C%E5%88%86%E4%BA%AB.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">专升本经验分享</div></div></a></div></nav><hr/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div><div id="comment-switch"><span class="first-comment">Twikoo</span><span class="switch-btn"></span><span class="second-comment">Waline</span></div></div><div class="comment-wrap"><div><div id="twikoo-wrap"></div></div><div><div id="waline-wrap"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/mysrc/headimg.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">John Cena</div><div class="author-info__description">梦想不大,道路漫长</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">33</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">17</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">4</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly"><i class="fab fa-github"></i><span>主题获取</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/jcxiaozhan0403" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="http://wpa.qq.com/msgrd?v=3&amp;uin=349636607&amp;site=qq&amp;menu=yes" target="_blank" title="QQ"><i class="fab fa-qq"></i></a><a class="social-icon" href="mailto:349636607@qq.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">感谢来访，喜欢的话可以常来小站逛逛，不定期更新博客内容！</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/12/31/2023%E5%B9%B4%E7%BB%88%E6%80%BB%E7%BB%93/" title="2023年终总结">2023年终总结</a><time datetime="2023-12-30T16:00:00.000Z" title="发表于 2023-12-31 00:00:00">2023-12-31</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/02/22/%E4%BB%8E%E9%9B%B6%E5%BC%80%E5%A7%8B%EF%BC%9AJVM%E5%8E%9F%E7%90%86%E8%A7%A3%E6%9E%90/" title="从零开始：JVM原理解析">从零开始：JVM原理解析</a><time datetime="2023-02-21T16:00:00.000Z" title="发表于 2023-02-22 00:00:00">2023-02-22</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2022/12/31/2022%E5%B9%B4%E7%BB%88%E6%80%BB%E7%BB%93/" title="2022年终总结">2022年终总结</a><time datetime="2022-12-30T16:00:00.000Z" title="发表于 2022-12-31 00:00:00">2022-12-31</time></div></div></div></div></div></div></main><footer id="footer" style="background-image: url('https://img.jcxiaozhan.top/cover/%E7%BB%99%E6%9C%AA%E6%9D%A5%E7%9A%84%E4%B8%80%E5%B0%81%E4%BF%A1.jpg')"><div id="footer-wrap"><div class="copyright">&copy;2019 - 2024 By John Cena</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div><div class="footer_custom_text">生活是个无赖，总毁掉所有的期待<br><span id="htmer_time"></span></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><a id="to_comment" href="#post-comment" title="直达评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"><script>(()=>{
  const init = () => {
    twikoo.init(Object.assign({
      el: '#twikoo-wrap',
      envId: 'https://twikoo.jcxiaozhan.top/',
      region: '',
      onCommentLoaded: function () {
        btf.loadLightbox(document.querySelectorAll('#twikoo .tk-content img:not(.tk-owo-emotion)'))
      }
    }, null))
  }

  const getCount = () => {
    const countELement = document.getElementById('twikoo-count')
    if(!countELement) return
    twikoo.getCommentsCount({
      envId: 'https://twikoo.jcxiaozhan.top/',
      region: '',
      urls: [window.location.pathname],
      includeReply: false
    }).then(function (res) {
      countELement.innerText = res[0].count
    }).catch(function (err) {
      console.error(err);
    });
  }

  const runFn = () => {
    init()
    GLOBAL_CONFIG_SITE.isPost && getCount()
  }

  const loadTwikoo = () => {
    if (typeof twikoo === 'object') {
      setTimeout(runFn,0)
      return
    } 
    getScript('https://cdn.staticfile.org/twikoo/1.6.8/twikoo.all.min.js').then(runFn)
  }

  if ('Twikoo' === 'Twikoo' || !false) {
    if (false) btf.loadComment(document.getElementById('twikoo-wrap'), loadTwikoo)
    else loadTwikoo()
  } else {
    window.loadOtherComment = () => {
      loadTwikoo()
    }
  }
})()</script><script>function loadWaline () {
  function insertCSS () {
    const link = document.createElement("link")
    link.rel = "stylesheet"
    link.href = "https://cdn.jsdelivr.net/npm/@waline/client/dist/waline.min.css"
    document.head.appendChild(link)
  }

  function initWaline () {
    const waline = Waline.init(Object.assign({
      el: '#waline-wrap',
      serverURL: 'https://waline.manager.jcxiaozhan.top/',
      pageview: false,
      dark: 'html[data-theme="dark"]',
      path: window.location.pathname,
      comment: true,
    }, null))
  }

  if (typeof Waline === 'function') initWaline()
  else {
    insertCSS()
    getScript('https://cdn.jsdelivr.net/npm/@waline/client/dist/waline.min.js').then(initWaline)
  }
}

if ('Twikoo' === 'Waline' || !false) {
  if (false) btf.loadComment(document.getElementById('waline-wrap'),loadWaline)
  else setTimeout(loadWaline, 0)
} else {
  function loadOtherComment () {
    loadWaline()
  }
}</script></div><script>window.addEventListener('load', () => {
  const changeContent = (content) => {
    if (content === '') return content

    content = content.replace(/<img.*?src="(.*?)"?[^\>]+>/ig, '[图片]') // replace image link
    content = content.replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi, '[链接]') // replace url
    content = content.replace(/<pre><code>.*?<\/pre>/gi, '[代码]') // replace code
    content = content.replace(/<[^>]+>/g,"") // remove html tag

    if (content.length > 150) {
      content = content.substring(0,150) + '...'
    }
    return content
  }

  const getComment = () => {
    const runTwikoo = () => {
      twikoo.getRecentComments({
        envId: 'https://twikoo.jcxiaozhan.top/',
        region: '',
        pageSize: 5,
        includeReply: true
      }).then(function (res) {
        const twikooArray = res.map(e => {
          return {
            'content': changeContent(e.comment),
            'avatar': e.avatar,
            'nick': e.nick,
            'url': e.url + '#' + e.id,
            'date': new Date(e.created).toISOString()
          }
        })

        saveToLocal.set('twikoo-newest-comments', JSON.stringify(twikooArray), 10/(60*24))
        generateHtml(twikooArray)
      }).catch(function (err) {
        const $dom = document.querySelector('#card-newest-comments .aside-list')
        $dom.innerHTML= "无法获取评论，请确认相关配置是否正确"
      })
    }

    if (typeof twikoo === 'object') {
      runTwikoo()
    } else {
      getScript('https://cdn.staticfile.org/twikoo/1.6.8/twikoo.all.min.js').then(runTwikoo)
    }
  }

  const generateHtml = array => {
    let result = ''

    if (array.length) {
      for (let i = 0; i < array.length; i++) {
        result += '<div class=\'aside-list-item\'>'

        if (true) {
          const name = 'src'
          result += `<a href='${array[i].url}' class='thumbnail'><img ${name}='${array[i].avatar}' alt='${array[i].nick}'></a>`
        }
        
        result += `<div class='content'>
        <a class='comment' href='${array[i].url}' title='${array[i].content}'>${array[i].content}</a>
        <div class='name'><span>${array[i].nick} / </span><time datetime="${array[i].date}">${btf.diffDate(array[i].date, true)}</time></div>
        </div></div>`
      }
    } else {
      result += '没有评论'
    }

    let $dom = document.querySelector('#card-newest-comments .aside-list')
    $dom.innerHTML= result
    window.lazyLoadInstance && window.lazyLoadInstance.update()
    window.pjax && window.pjax.refresh($dom)
  }

  const newestCommentInit = () => {
    if (document.querySelector('#card-newest-comments .aside-list')) {
      const data = saveToLocal.get('twikoo-newest-comments')
      if (data) {
        generateHtml(JSON.parse(data))
      } else {
        getComment()
      }
    }
  }

  newestCommentInit()
  document.addEventListener('pjax:complete', newestCommentInit)
})</script><script src="/js/myjs.js"></script><canvas class="fireworks" mobile="false"></canvas><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/fireworks.min.js"></script><script id="canvas_nest" defer="defer" color="0,0,255" opacity="0.7" zIndex="-1" count="99" mobile="false" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/canvas-nest.min.js"></script><script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script><script>let pjaxSelectors = ["head > title","#config-diff","#body-wrap","#rightside-config-hide","#rightside-config-show",".js-pjax"]

var pjax = new Pjax({
  elements: 'a:not([target="_blank"]):not([href="/shuoshuo/"]):not([href="/navigation.html"]):not([href="/artitalk/index.html"])',
  selectors: pjaxSelectors,
  cacheBust: false,
  analytics: false,
  scrollRestoration: false
})

document.addEventListener('pjax:send', function () {

  // removeEventListener scroll 
  window.tocScrollFn && window.removeEventListener('scroll', window.tocScrollFn)
  window.scrollCollect && window.removeEventListener('scroll', scrollCollect)

  typeof preloader === 'object' && preloader.initLoading()
  document.getElementById('rightside').style.cssText = "opacity: ''; transform: ''"
  
  if (window.aplayers) {
    for (let i = 0; i < window.aplayers.length; i++) {
      if (!window.aplayers[i].options.fixed) {
        window.aplayers[i].destroy()
      }
    }
  }

  typeof typed === 'object' && typed.destroy()

  //reset readmode
  const $bodyClassList = document.body.classList
  $bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')

  typeof disqusjs === 'object' && disqusjs.destroy()
})

document.addEventListener('pjax:complete', function () {
  window.refreshFn()

  document.querySelectorAll('script[data-pjax]').forEach(item => {
    const newScript = document.createElement('script')
    const content = item.text || item.textContent || item.innerHTML || ""
    Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
    newScript.appendChild(document.createTextNode(content))
    item.parentNode.replaceChild(newScript, item)
  })

  GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()

  typeof chatBtnFn === 'function' && chatBtnFn()
  typeof panguInit === 'function' && panguInit()

  // google analytics
  typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname});

  // baidu analytics
  typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]);

  typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()

  // prismjs
  typeof Prism === 'object' && Prism.highlightAll()

  typeof preloader === 'object' && preloader.endLoading()
})

document.addEventListener('pjax:error', (e) => {
  if (e.request.status === 404) {
    pjax.loadUrl('/404.html')
  }
})</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>